//
//  setup_mcast.hpp
// ~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2013-2014 Razvan Coca (razvan dot coca at  gmail dot com)
// 
//


#ifndef SETUP_MCAST_HPP
#define SETUP_MCAST_HPP
#include <boost/asio.hpp>
void setup_mcast_socket(
        boost::asio::ip::udp::socket& msocket,
        boost::asio::ip::udp::endpoint const& local_if,
        boost::asio::ip::udp::endpoint const& mcast_group,
        int ttl,bool reuse=false,bool loopback=false);
void teardown_mcast_socket(boost::asio::ip::udp::socket& msocket,
                           boost::asio::ip::udp::endpoint const& mcast_group);
#endif // SETUP_MCAST_HPP
